/*样式重置*/
body,
ul,
ol,
p,
h1,
h2,
h3,
h4 {
  padding: 0;
  margin: 0;
  font-family: "微软雅黑";
  list-style: none;
}
a {
  text-decoration: none !important;
  color: white !important;
}
img {
  border: none;
}
label {
  margin: 0 !important;
}
form {
  height: 100% !important;
}
/*清浮动*/
.clear:after {
  content: "";
  display: block;
  clear: both;
}
.clear {
  zoom: 1;
}

body {
  background: #f5f5f6;
}

@media (min-width: 770px) {
  #main_box {
    width: 80rem;
    height: 50rem;
    background: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 5px;
    box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
}

/* 左侧盒子 */
#left_box,
#right_box {
  width: 100%;
  height: 50rem;
}
#left_box {
  background: url("./img/login_bg.jpg");
  position: relative;
  z-index: 3;
}

#logo {
  height: 8rem;
}
#left_title {
  font-size: 4rem;
  color: white;
  font-weight: bold;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding-left: 0.5rem;
}

#left_subtitle {
  font-weight: bold;
  font-size: 2.5rem;
  color: white;
  text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  padding-left: 0.5rem;
  margin-top: 1rem;
  letter-spacing: 0.3rem;
}

@media (max-width: 990px) {
  #left_title {
    font-size: 2.5rem;
    padding: 0rem;
  }
  #left_subtitle {
    font-size: 2rem;
    padding: 0rem;
  }
}
/* 一言 */
#hitokoto {
  padding: 2rem;
  font-size: 1rem;
  margin-top: 5rem;
  color: white;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}
#hitokoto_title {
  font-size: 2rem;
}
#hitokoto_text {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
#hitokoto_from {
  text-align: right;
}

#footer {
  position: absolute;
  bottom: 2rem;
  color: white;
  left: 2rem;
  font-weight: 100;
  letter-spacing: rem;
}
#footer span {
  margin-right: 1rem;
}
#footer a {
  color: white;
  text-decoration: underline;
}

/* 右侧盒子 */
#right_box {
  position: relative;
  background: white;
  padding: 3rem;
}
/* 登录 */
#login_box {
  height: 100%;
  width: 100%;
  z-index: 1;
}
/* 注册 */
#register_box {
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2;
  display: none;
  animation-duration: 1s; /*过渡动画时间*/
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.5rem 3rem;
}
.title {
  font-weight: bold;
  font-size: 2rem;
  margin: 1rem 0;
  border-left: 5px solid;
  padding-left: 0.5rem;
  opacity: 0.8;
}
.subtitle {
  font-weight: 100;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.5);
  line-height: 2rem;
  margin: 1rem 0;
}
#login_form {
  margin-top: 4.5rem;
}
.input_text {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 2.5rem;
  margin: 1rem 0;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  padding: 0 1rem;
}
#password {
  letter-spacing: 0.3rem;
}

/* 记住我 按钮 */
#remember_me {
  display: none;
}
#remember_me + label:before {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  vertical-align: middle;
  margin-right: 8px;
  transition: all 0.2s;
  line-height: 1rem;
  text-align: center;
  font-size: 0.5rem;
  color: white;
}
#remember_me:checked + label:before {
  content: "\2714";
  background: #ff7043;
}
#checkbox label {
  font-weight: bold;
  color: rgba(0, 0, 0, 0.7);
}
#forget_btn {
  float: right;
  color: rgba(0, 0, 0, 0.5);
}

/* 登录注册 */
.log_reg_btn {
  display: block;
  width: 100%;
  border: none;
  background: #ff7043;
  color: white;
  text-align: center;
  line-height: 3rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 5px;
}
.log_reg_btn:hover {
  background-color: rgb(240, 79, 30);
}
#login_btn {
  margin-top: 4.5rem;
}
#register_btn {
  margin-top: 2rem;
}
.goto_log_reg {
  text-align: center;
  display: block;
  margin-top: 20px;
  background: rgb(121, 121, 121);
  line-height: 3rem;
  font-size: 1.2rem;
  border-radius: 5px;
  color: white;
}
.goto_log_reg:hover {
  background: rgb(87, 87, 87);
}

#alert{
  z-index: 999;
  position: fixed;
  bottom: 0;
  border-radius: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  display: none;
}